package com.dt76.smallloanbackenduser.remote.xiaohao;

import com.dt76.smallloanbackenduser.hystrix.xiaohao.ContractTemplateHystrix;
import com.dt76.smallloanbackenduser.pojo.xiaohao.HContractTemplate;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = ContractTemplateHystrix.class)
public interface ContractTemplateRemote {
    //所有启用的模板
    @RequestMapping("/xiaohao/HContractTemplate/qryAll")
    List<HContractTemplate> qryAll();

    //根据id查询合同模板
    @RequestMapping("/xiaohao/HContractTemplate/qryByID")
    HContractTemplate qryByID(@RequestParam("id") int id);
}
